package OOPS;

class Hello2 {
	int abc;
	float f1;
}

class Test40 {
	public static void main(String str[]) {
		int xy = 10;
		int mn = xy;
		System.out.println(xy + "\t" + mn);
		mn = mn + 100;
		System.out.println(xy + "\t" + mn);
		Hello2 h1 = new Hello2();
		Hello2 h2 = h1;
		System.out.println(h1.abc + "\t" + h2.abc);
		System.out.println(h1.f1 + "\t" + h2.f1);
		System.out.println("After Modifying h2 property");
		h2.abc = 123;
		h2.f1 = 145.01F;
		System.out.println(h1.abc + "\t" + h2.abc);
		System.out.println(h1.f1 + "\t" + h2.f1);
		System.out.println("After Modifying h2  Refrence");
		h2 = new Hello2();
		h2.abc = 5765;
		h2.f1 = 121.01F;
		System.out.println(h1.abc + "\t" + h2.abc);
		System.out.println(h1.f1 + "\t" + h2.f1);
	}
}